package org.yourscrum.domain;

import java.util.List;

/**
 * Repository implementation for stories.
 *
 * @author Jettro Coenradie
 */
public interface StoryRepository {

    void addStory(Story story);

    void updateStory(Story story);

    Story obtainStoryById(long id);

    List<Story> listAllStories();

    Story findLeastImportantStory();

    Story findPreviousStory(Long storyId);
}
